local keys = {
    { "<leader>gg", "<cmd>Neogit<CR>"        },
    { "<leader>gc", "<cmd>Neogit commit<CR>" },
}

return {
    url = "https://github.com/NeogitOrg/neogit",
    dependencies = {
        "nvim-lua/plenary.nvim",
        "sindrets/diffview.nvim",
    },
    opts = {
        git_services = {
            ["github.com"] = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1",
            ["gitlab.com"] = "https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
            ["codeberg.org"] = "https://codeberg.org/${owner}/${repository}/compare/${branch_name}",
        },
        integrations = {
            telescope = true,
            diffview = true,
        },
    },
    keys = keys,
    lazy = false,
}
